package com.kaka.bus.bean;

import android.os.Parcel;
import android.os.Parcelable;

public class LoanBean implements Parcelable {

    /**
     * serviceFee : 200
     * period : 10
     * updateDate : 1532568713000
     * flag : 0
     * businessId : 1
     * subhead : 副标题
     * remark : 备注
     * creationDate : 1531386939000
     * productName : 极速借款
     * renewServiceFee : 180
     * enable : 0
     * productTypeName : 现金贷
     * productIcon : http://192.168.1.119:23011/platform-app/images/home_but_jsjk@2x.png
     * id : 3
     * estimatedAmount : 0
     * headline : 标题
     * isSelf : 1
     * productDescription : 随便借
     * productType : 1
     * productTypeCode :
     */

    private String serviceFee;
    private int period;
    //    private long updateDate;
    private String flag;
    private String businessId;
    private String subhead;
    private String remark;
    //    private long creationDate;
    private String productName;
    private int renewServiceFee;
    private String productTypeName;
    private String productIcon;
    private int id;
    private int estimatedAmount;
    private String headline;
    private String isSelf;
    private String productDescription;
    private int productType;
    private String productTypeCode;
    private String enable;

    public String getEnable() {
        return enable;
    }

    public void setEnable(String enable) {
        this.enable = enable;
    }

    public String getJdUrl() {
        return jdUrl;
    }

    public void setJdUrl(String jdUrl) {
        this.jdUrl = jdUrl;
    }

    public static Creator<LoanBean> getCREATOR() {
        return CREATOR;
    }

    private String jdUrl;

    public String getServiceFee() {
        return serviceFee;
    }

    public void setServiceFee(String serviceFee) {
        this.serviceFee = serviceFee;
    }

    public int getPeriod() {
        return period;
    }

    public void setPeriod(int period) {
        this.period = period;
    }

//    public long getUpdateDate() {
//        return updateDate;
//    }
//
//    public void setUpdateDate(long updateDate) {
//        this.updateDate = updateDate;
//    }

    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

    public String getBusinessId() {
        return businessId;
    }

    public void setBusinessId(String businessId) {
        this.businessId = businessId;
    }

    public String getSubhead() {
        return subhead;
    }

    public void setSubhead(String subhead) {
        this.subhead = subhead;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

//    public long getCreationDate() {
//        return creationDate;
//    }
//
//    public void setCreationDate(long creationDate) {
//        this.creationDate = creationDate;
//    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public int getRenewServiceFee() {
        return renewServiceFee;
    }

    public void setRenewServiceFee(int renewServiceFee) {
        this.renewServiceFee = renewServiceFee;
    }


    public String getProductTypeName() {
        return productTypeName;
    }

    public void setProductTypeName(String productTypeName) {
        this.productTypeName = productTypeName;
    }

    public String getProductIcon() {
        return productIcon;
    }

    public void setProductIcon(String productIcon) {
        this.productIcon = productIcon;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getEstimatedAmount() {
        return estimatedAmount;
    }

    public void setEstimatedAmount(int estimatedAmount) {
        this.estimatedAmount = estimatedAmount;
    }

    public String getHeadline() {
        return headline;
    }

    public void setHeadline(String headline) {
        this.headline = headline;
    }

    public String getIsSelf() {
        return isSelf;
    }

    public void setIsSelf(String isSelf) {
        this.isSelf = isSelf;
    }

    public String getProductDescription() {
        return productDescription;
    }

    public void setProductDescription(String productDescription) {
        this.productDescription = productDescription;
    }

    public int getProductType() {
        return productType;
    }

    public void setProductType(int productType) {
        this.productType = productType;
    }

    public String getProductTypeCode() {
        return productTypeCode;
    }

    public void setProductTypeCode(String productTypeCode) {
        this.productTypeCode = productTypeCode;
    }

    public LoanBean() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.serviceFee);
        dest.writeInt(this.period);
        dest.writeString(this.flag);
        dest.writeString(this.businessId);
        dest.writeString(this.subhead);
        dest.writeString(this.remark);
        dest.writeString(this.productName);
        dest.writeInt(this.renewServiceFee);
        dest.writeString(this.productTypeName);
        dest.writeString(this.productIcon);
        dest.writeInt(this.id);
        dest.writeInt(this.estimatedAmount);
        dest.writeString(this.headline);
        dest.writeString(this.isSelf);
        dest.writeString(this.productDescription);
        dest.writeInt(this.productType);
        dest.writeString(this.productTypeCode);
        dest.writeString(this.enable);
        dest.writeString(this.jdUrl);
    }

    protected LoanBean(Parcel in) {
        this.serviceFee = in.readString();
        this.period = in.readInt();
        this.flag = in.readString();
        this.businessId = in.readString();
        this.subhead = in.readString();
        this.remark = in.readString();
        this.productName = in.readString();
        this.renewServiceFee = in.readInt();
        this.productTypeName = in.readString();
        this.productIcon = in.readString();
        this.id = in.readInt();
        this.estimatedAmount = in.readInt();
        this.headline = in.readString();
        this.isSelf = in.readString();
        this.productDescription = in.readString();
        this.productType = in.readInt();
        this.productTypeCode = in.readString();
        this.enable = in.readString();
        this.jdUrl = in.readString();
    }

    public static final Creator<LoanBean> CREATOR = new Creator<LoanBean>() {
        @Override
        public LoanBean createFromParcel(Parcel source) {
            return new LoanBean(source);
        }

        @Override
        public LoanBean[] newArray(int size) {
            return new LoanBean[size];
        }
    };
}
